<!doctype html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="heimdall" content="首页">
    <title>三鑫灯世界 - 首页</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/header.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/c.css" />
    <link href="__PUBLIC__/css/ma5slider.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
    <script src="__PUBLIC__/js/jquery-ui.min.js"></script>
    <script src="__PUBLIC__/js/ma5slider.min.js"></script>
    <style>
        .slideimg{
            height:384px!important;
        }

        .yuanpice{font-size: 14px;color: #666;text-decoration:line-through;}
    </style>
</head>

<body>
<!--公共头部-->
<include file="./Application/Home/View/Public/head.html"/>

<div class="carousel ng-isolate-scope">
    <div class="container" style="width: 100%;background: #f5f5f5;">
        <div id="example-01" class="ma5slider anim-horizontal horizontal-dots horizontal-navs center-dots inside-dots autoplay">
            <div class="slides">
                <volist name="slideshow" id="v">
                    <a href=""><img class="slideimg" src="__ROOT__{$v.lb_picture}"></a>
                </volist>
            </div>
        </div>
    </div>
</div>
<div style="clear: both;"></div>
<div class="container module" style="margin-top: 50px;">
    <div class="time-img">
        <h3>新品推荐</h3>
    </div>
    <div class="mc">
        <div class="sittingBox">
            <div class="pc-goods">
                <div class="mc-goods" style="background: #fff">
                    <volist name="list" id="li">
                        <a class="hot ng-scope first" href="{:U('shop_details')}?id={$li.good_id}">
                            <div class="pic">
                                <img width="260" height="260" src="__ROOT__{$li.picture}">
                            </div>
                            <p class="money ng-scope">
                                <if condition="session('user_vip') eq 1">
                                    <span class="ng-binding ng-scope">￥{$li.vip_price}</span>
                                    <span class="yuanpice">￥{$li.price}</span>
                                <else />
                                    <span class="ng-binding ng-scope">￥{$li.price}</span>
                                </if>
                            </p>
                            <h5 class="goods-name ng-binding" >{$li.good_name}</h5>
                        </a>
                    </volist>
                </div>
                <div style="clear: both"></div>
                <div style="display: none;position: relative;" class="jiazai">
                    <div style="text-align: center;font-size: 20px;">
                        <img src="__PUBLIC__/img/jiazai2.gif" alt="" style="width: 50px;height: 50px;vertical-align: middle;margin-right: 20px;"/>加载中...
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div style="clear: both"></div>
<input type="hidden" id="page" value="2">

<a target="_blank" style="position: fixed;right: 20px;bottom: 60px;" href="http://wpa.qq.com/msgrd?v=3&uin=2675162351&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2675162351:51" alt="联系客服" title="联系客服"/></a>
<a target="_blank" style="position: fixed;right: 20px;bottom: 30px;" href="http://wpa.qq.com/msgrd?v=3&uin=1478709334&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2675162351:51" alt="联系客服" title="联系客服"/></a>
<!--引入公共的底部-->
<include file="./Application/Home/View/Public/footer.html"/>

<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1271281010'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1271281010' type='text/javascript'%3E%3C/script%3E"));</script>

</body>
<script>
    $(window).on('load', function() {
        $('.ma5slider').ma5slider();
    });
</script>
<script>
    $('.side-ul> li').hover(function(){
        $(this).css('background','#fff').find('a:first-child').css('color','#000');
        $(this).find('.nav-items').show();
    },function(){
        $(this).css('background','#4f4f4f').find('a:first-child').css('color','#fff');
        $(this).find('.nav-items').hide();
    })

</script>

<!--商品瀑布流-->
<script type="text/javascript">
    var tur = true;
    var wh=$(document).height();
    var pages = $('#page').val();
    $(window).scroll(scrolldemo)
    function scrolldemo(){
        var s=wh-$(window).scrollTop();
        if(tur && s<=1400){
            $('.jiazai').show();
            setTimeout(function() {
                $.ajax({
                    url:"{:U('upData')}",
                    data:{'page':pages},
                    type:'post',
                    async:false,
                    success:function (e) {
                        $('.jiazai').hide();
                        if(e == -1){
                            $(window).off("scroll",scrolldemo);//清除滚动条定时事件
                        }
                        var da = JSON.parse(e);
                        var repaly = '';
                        for (var i=0;i<da.length;i++){
                            repaly += '<a class="hot ng-scope first" href="{:U(shop_details)}?id='+da[i].good_id+'">'
                                    +'<div class="pic">'
                                    +'<img width="260" height="260" src="__ROOT__'+da[i].picture+'">'
                                    +'</div>'
                                    +'<p class="money ng-scope">'
                                    +'<if condition="session(user_vip) eq 1">'
                                    +'<span class="ng-binding ng-scope">￥'+da[i].vip_price+'</span>&nbsp;'
                                    +'<span class="yuanpice">￥'+da[i].price+'</span>'
                                    +'<else />'
                                    +'<span class="ng-binding ng-scope">￥'+da[i].price+'</span>'
                                    +'</if>'
                                    +'</p>'
                                    +'<h5 class="goods-name ng-binding" >'+da[i].good_name+'</h5>'
                                    +'</a>'
                        }
                        $('.mc-goods').append(repaly);
                        pages++;
                        $('#page').val(pages);
                    }
                });
                tur = true;
            }, 1000);
            tur = false;
        }
    }
</script>

</html>